package com.atguigu.day17.collection02.c1;

import org.junit.Test;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/20 11:40
 * @注释 练习2
 *    声明学员类型Student，包含属性：姓名，成绩
 *    添加本组学员Student对象到Collection的某个集合中
 *
 *    * 使用增强for遍历
 *    * 使用Iterator遍历，并删除成绩低于60分的
 */
public class Student {
    String name;
    double score;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public Student(String name, double score) {
        this.name = name;
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student [name=" + name + ", score=" + score + "]";
    }
}
